home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 7: Programming / CDAT7.iso / demos / VisualAge for Java 2.0 Entry / setup / data1.cab / ide-e / IDE / cache / 1VXA0M0 (.txt) < prev    next >
Encoding:
Java Class File  |  1998-09-16  |  1.7 KB  |  34 lines

  1. package com.sun.java.swing.event;
  2.  
  3. import java.util.EventObject;
  4.  
  5. public class ListSelectionEvent extends EventObject {
  6.    private int firstIndex;
  7.    private int lastIndex;
  8.    private boolean isAdjusting;
  9.  
  10.    public ListSelectionEvent(Object source, int firstIndex, int lastIndex, boolean isAdjusting) {
  11.       super(source);
  12.       this.firstIndex = firstIndex;
  13.       this.lastIndex = lastIndex;
  14.       this.isAdjusting = isAdjusting;
  15.    }
  16.  
  17.    public int getFirstIndex() {
  18.       return this.firstIndex;
  19.    }
  20.  
  21.    public int getLastIndex() {
  22.       return this.lastIndex;
  23.    }
  24.  
  25.    public boolean getValueIsAdjusting() {
  26.       return this.isAdjusting;
  27.    }
  28.  
  29.    public String toString() {
  30.       String properties = " source=" + ((EventObject)this).getSource() + " firstIndex= " + this.firstIndex + " lastIndex= " + this.lastIndex + " isAdjusting= " + this.isAdjusting + " ";
  31.       return this.getClass().getName() + "[" + properties + "]";
  32.    }
  33. }
  34.